package com.platform.service.impl;

import com.platform.dao.UserFreezeAccountDao;
import com.platform.entity.UserFreezeAccountEntity;
import com.platform.service.UserFreezeAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2017-08-16 16:52:22
 */
@Service("userCommissionFreezeService")
public class UserFreezeAccountServiceImpl implements UserFreezeAccountService {
    @Autowired
    private UserFreezeAccountDao userFreezeAccountDao;

    @Override
    public List<UserFreezeAccountEntity> queryFreezeEnd() {
        return userFreezeAccountDao.queryFreezeEnd();
    }

    @Override
    public int updateDeal(List<Long> ids) {
        return userFreezeAccountDao.updateDeal(ids);
    }



    @Override
    public UserFreezeAccountEntity getByUserIdAndOrderGoodsId(Long userId, Long orderGoodsId) {
        return userFreezeAccountDao.getByUserIdAndOrderGoodsId(userId, orderGoodsId).get(0);
    }

    @Override
    public void save(UserFreezeAccountEntity userFreezeAccountEntity) {
        userFreezeAccountDao.save(userFreezeAccountEntity);
    }
}
